//
//  StrategyCollectionReusableView.m
//  BeautifulShoppings
//
//  Created by GivenBmli on 16/9/5.
//  Copyright © 2016年 GivenBmli. All rights reserved.
//

#import "StrategyCollectionReusableView.h"
#import "JXLDayAndNightMode.h"
#import "TAMacro.h"
@implementation StrategyCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self creatSubView:frame];
    }
    return self;
}
- (void)creatSubView:(CGRect)fram {
    self.view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 5)];
    self.Title = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH / 15, 0, SCREEN_WIDTH, SCREEN_HEIGHT / 20)];
    [self.Title jxl_setDayMode:^(UIView *view) {
        self.Title.backgroundColor = [UIColor whiteColor];
    } nightMode:^(UIView *view) {
        self.Title.backgroundColor = [UIColor grayColor];
    }];
    [self addSubview:self.Title];
    [self addSubview: self.view];

}

@end
